package com.erp.mapper;

import com.erp.entity.Provider;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Mapper
public interface ProviderMapper {
    
    Provider findProviderByName(String name);

    List<Provider> getAll();

    int add(Provider provider);

    int delete(Integer id);

    int update(Provider provider);
}
